Skip to main content
PUT
/
x
/
articles
/
{article_id}
/
cover
[Step 2/5] Upload and set article cover image (optional)
curl --request PUT \
  --url https://api.twexapi.io/x/articles/{article_id}/cover \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "cookie": "<string>",
  "cover_image": "<string>"
}
'
{
  "code": 123,
  "msg": "<string>",
  "data": {
    "media_id": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

article_id
string
required

Body

application/json

Twitter cookie string

cover_image
string
required

Cover image: https URL or local file path

Response

Successful Response

code
integer
required

200 = success, 429 = rate limit, 500 = server error

msg
string
required

Human-readable result message

data
ArticleCoverData · object